package com.quarters.bean;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 文章和订单表
 * </p>
 *
 * @author 冯政尚
 * @since 2019-09-04
 */
@ApiModel(value="ArticleOrder对象", description="文章和订单表")
public class ArticleOrder extends Model<ArticleOrder> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Long createTime;

    @ApiModelProperty(value = "推送人id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "应支付金额")
    @TableField("moeny")
    private String moeny;

    @ApiModelProperty(value = "订单号")
    @TableField("order_number")
    private String orderNumber;

    @ApiModelProperty(value = "实际支付金额")
    @TableField("order_moeny")
    private String orderMoeny;

    @ApiModelProperty(value = "openid")
    @TableField("openid")
    private String openid;

    @ApiModelProperty(value = "类型 1未审核 3已审核")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "类型 1已通过 2未通过 3未审核")
    @TableField("type_type")
    private Integer typeType;

    @ApiModelProperty(value = "支付状态")
    @TableField("flage")
    private Integer flage;

    @ApiModelProperty(value = "用户集合")
    @TableField("user_list")
    private String userList;

    @TableField(exist = false)
    private String username;

    @TableField(exist = false)
    private String quartersName;


    @ApiModelProperty(value = "文章id")
    @TableField("article_id")
    private Long articleId;

    @ApiModelProperty(value = "审核时间")
    @TableField("audit_time")
    private Long auditTime;

    public String getQuartersName() {
        return quartersName;
    }

    public void setQuartersName(String quartersName) {
        this.quartersName = quartersName;
    }

    public Long getAuditTime() {
        return auditTime;
    }

    public void setAuditTime(Long auditTime) {
        this.auditTime = auditTime;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public Long getArticleId() {
        return articleId;
    }

    public void setArticleId(Long articleId) {
        this.articleId = articleId;
    }

    public Integer getTypeType() {
        return typeType;
    }

    public void setTypeType(Integer typeType) {
        this.typeType = typeType;
    }

    public String getUserList() {
        return userList;
    }

    public void setUserList(String userList) {
        this.userList = userList;
    }

    public Integer getFlage() {
        return flage;
    }

    public void setFlage(Integer flage) {
        this.flage = flage;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public String getMoeny() {
        return moeny;
    }

    public void setMoeny(String moeny) {
        this.moeny = moeny;
    }
    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }
    public String getOrderMoeny() {
        return orderMoeny;
    }

    public void setOrderMoeny(String orderMoeny) {
        this.orderMoeny = orderMoeny;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ArticleOrder{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", createTime=" + createTime +
                ", userId=" + userId +
                ", moeny='" + moeny + '\'' +
                ", orderNumber='" + orderNumber + '\'' +
                ", orderMoeny='" + orderMoeny + '\'' +
                ", openid='" + openid + '\'' +
                ", type=" + type +
                ", typeType=" + typeType +
                ", flage=" + flage +
                ", userList='" + userList + '\'' +
                ", username='" + username + '\'' +
                ", quartersName='" + quartersName + '\'' +
                ", articleId=" + articleId +
                ", auditTime=" + auditTime +
                '}';
    }
}
